// import {createStore,combineReducers,applyMiddleware} from 'redux'
import {createStore,combineReducers,applyMiddleware} from './myredux'
// import thunk from 'redux-thunk'
import {thunk,logger} from './mythunk'
import {todoReducer,colorReducer} from './reducers'
let rootReducer = combineReducers({
  todo:todoReducer,
  color123:colorReducer
})
let store = createStore(rootReducer,applyMiddleware(logger,thunk))
console.log(store.getState())
// store {getState,dispatch,subscribe}
export default store